package com.gnerv.battle.boot.module.base.model.dto;

import com.gnerv.battle.boot.module.base.model.bo.PermissionBO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author Gnerv LiGen
 */
@Data
public class PermissionUpdateDTO {

    private String ukId;
    private String name;
    private String url;
    private String type;
    private String value;
    private String status;
    private Integer sort;

    public PermissionBO toPermissionBO() {
        PermissionBO permissionBO = new PermissionBO();
        BeanUtils.copyProperties(this, permissionBO);
        return permissionBO;
    }
}